function CRMWindowInfo(sUrl, iXOffset, iYOffset)
{
	this.Width	= parseInt(iXOffset, 10);
	this.Height	= parseInt(iYOffset, 10);
	this.Url	= sUrl;
}
function GetWindowInformation(iObjectType) {switch (parseInt(iObjectType, 10)) {
    case Account: return new CRMWindowInfo("sfa/accts/edit.aspx",1000,560);
    case List: return new CRMWindowInfo("ma/lists/edit.aspx",820,560);
    case Import: return new CRMWindowInfo("import/edit.aspx",1000,560);
    case Campaign: return new CRMWindowInfo("ma/camps/edit.aspx",820,560);
    case BulkOperation: return new CRMWindowInfo("ma/bulkoperations/edit.aspx",860,560);
    case Service: return new CRMWindowInfo("sm/services/edit.aspx",800,560);
    case CampaignResponse: return new CRMWindowInfo("activities/campaignresponseedit.aspx",880,630);
    case CampaignActivity: return new CRMWindowInfo("ma/campaignactivity/edit.aspx",755,540);
    case Equipment: return new CRMWindowInfo("sm/resources/edit.aspx",820,560);
    case ResourceGroup: return new CRMWindowInfo("sm/resourcegroups/edit.aspx",820,560);
    case ResourceSpec: return new CRMWindowInfo("sm/resourcespecs/edit.aspx",820,560);
    case Site: return new CRMWindowInfo("sm/sites/edit.aspx",820,560);
    case ServiceRestrictionCalendarRule: return new CRMWindowInfo("sm/workplans/dialogs/serviceavailability.aspx",550,380);
    case OccurrenceCalendarRule: return new CRMWindowInfo("sm/workplans/dialogs/occurrence.aspx",550,500);
    case RecurrenceCalendarRule: return new CRMWindowInfo("sm/workplans/dialogs/recurrencerule.aspx",550,500);
    case OccurringWorkShift: return new CRMWindowInfo("sm/workplans/dialogs/timesheet.aspx",640,500);
    case Calendar: return new CRMWindowInfo("tools/availabilitytemplateeditor/edit.aspx",750,480);
    case Contact: return new CRMWindowInfo("customer/contactpersonedit.aspx",1000,560);
    case CustomerAddress: return new CRMWindowInfo("sfa/customeraddress/edit.aspx",820,560);
    case CustomerEdit: return new CRMWindowInfo("Customer/customerview.aspx",820,560);
    case CustomerEdit1: return new CRMWindowInfo("Customer/customerview.aspx",820,560);
    case Opportunity: return new CRMWindowInfo("sfa/opps/edit.aspx",1000,560);
    case OpportunityView: return new CRMWindowInfo("customer/opporunityview.aspx",920,610);
    case OpportunityProduct: return new CRMWindowInfo("sfa/opportunityproduct/edit.aspx",820,560);
    case CustomerOpportunityRole: return new CRMWindowInfo("sfa/customeropportunityrole/edit.aspx",450,450);
    case Lead: return new CRMWindowInfo("customer/latencycustomeredit.aspx",1000,560);
    case Annotation: return new CRMWindowInfo("notes/edit.aspx",500,350);
    case Quote: return new CRMWindowInfo("sales/quoteedit.aspx",1000,560);
    case QuoteDetail: return new CRMWindowInfo("sfa/quotedetail/edit.aspx",820,560);
    case SalesOrder: return new CRMWindowInfo("sales/orderedit.aspx",1000,560);
    case SalesOrderDetail: return new CRMWindowInfo("sfa/salesorderdetail/edit.aspx",820,560);
    case Invoice: return new CRMWindowInfo("sales/invoiceedit.aspx",1000,560);
    case InvoiceDetail: return new CRMWindowInfo("sfa/invoicedetail/edit.aspx",820,560);
    case SystemUser: return new CRMWindowInfo("biz/usersedit.aspx",820,675);
    case Team: return new CRMWindowInfo("biz/teamsedit.aspx",880,500);
    case Insdustry: return new CRMWindowInfo("biz/industriesedit.aspx",880,500);
    case Office: return new CRMWindowInfo("biz/officesedit.aspx",880,500);
    case BusinessUnit: return new CRMWindowInfo("tools/businessdepartmentedit.aspx",880,500);
    case Incident: return new CRMWindowInfo("cs/cases/edit.aspx",1000,600);
    case Competitor: return new CRMWindowInfo("customer/competitordit.aspx",820,560);
    case DocumentIndex: return new CRMWindowInfo("cs/articles/viewer/default.aspx",650,530);
    case KbArticle: return new CRMWindowInfo("cs/articles/edit_article.aspx",820,560);
    case KbArticleComment: return new CRMWindowInfo("cs/articles/comment/edit.aspx",500,350);
    case KbArticleTemplate: return new CRMWindowInfo("tools/kbtemplateeditor/kbtemplateeditor.aspx",820,560);
    case Template: return new CRMWindowInfo("tools/emailtemplateeditor/emailtemplateeditor.aspx",820,560);
    case Subject: return new CRMWindowInfo("cs/subjs/edit_subj.aspx",400,300);
    case BusinessUnitNewsArticle: return new CRMWindowInfo("tools/newseditor/edit.aspx",820,560);
    case ActivityMimeAttachment: return new CRMWindowInfo("activities/attachment/edit.aspx",500,175);
    case Task: return new CRMWindowInfo("activities/taskedit.aspx",880,600);
    case Fax: return new CRMWindowInfo("activities/faxedit.aspx",880,600);
    
    case PhoneCall: return new CRMWindowInfo("activities/phoneedit.aspx?otype=add&activityid=00000000-0000-0000-0000-000000000000", 980, 630);
    
    case Appointment: return new CRMWindowInfo("activities/appointmentedit.aspx?otype=add&activityid=00000000-0000-0000-0000-000000000000", 900, 630);
    
    
    case Email: return new CRMWindowInfo("activities/emailedit.aspx?otype=add",1000,530);
    case Letter: return new CRMWindowInfo("activities/letteredit.aspx",880,600);
    case ServiceAppointment: return new CRMWindowInfo("activities/serviceappointmentedit.aspx",905,600);
    case Contract: return new CRMWindowInfo("cs/contracts/edit.aspx",1000,537);
    case ContractDetail: return new CRMWindowInfo("cs/contractdetails/edit.aspx",1000,557);
    case ContractTemplate: return new CRMWindowInfo("tools/contracttypemanager/edit.aspx",750,600);
    case SalesLiterature: return new CRMWindowInfo("sfa/saleslit/edit.aspx",820,560);
    case SalesLiteratureItem: return new CRMWindowInfo("sfa/saleslit/attachment_edit.aspx",820,560);
    case Product: return new CRMWindowInfo("products/product/edit.aspx",1000,560);
    case ProductPriceLevel: return new CRMWindowInfo("products/productpricelevel/edit.aspx",650,500);
    case Role: return new CRMWindowInfo("biz/rolesedit.aspx",1024,690);
    case SavedQuery: return new CRMWindowInfo("tools/vieweditor/viewmanager.aspx",800,400);
    case PriceLevel: return new CRMWindowInfo("products/pricelevel/edit.aspx",770,560);
    case UoMSchedule: return new CRMWindowInfo("products/uomschedule/edit.aspx",820,560);
    case UoM: return new CRMWindowInfo("products/uom/edit.aspx",580,370);
    case DiscountType: return new CRMWindowInfo("products/discounttype/edit.aspx",820,560);
    case Discount: return new CRMWindowInfo("products/discounttypeitem/edit.aspx",580,370);
    case Queue: return new CRMWindowInfo("tools/queuingmanager/edit.aspx",820,560);
    case OpportunityClose: return new CRMWindowInfo("sfa/opps/closeopp.aspx",550,375);
    case OrderClose: return new CRMWindowInfo("sfa/salesorder/cancelorder.aspx",550,375);
    case QuoteClose: return new CRMWindowInfo("sfa/quotes/closequote.aspx",550,375);
    case CustomerRelationship: return new CRMWindowInfo("sfa/customerrelationships/edit.aspx",720,390);
    case IncidentResolution: return new CRMWindowInfo("cs/cases/closecase.aspx",550,375);
    case Territory: return new CRMWindowInfo("biz/territoriesedit.aspx",820,560);
    case TransactionCurrency: return new CRMWindowInfo("biz/transactioncurrencies/edit.aspx",820,560);
    case MailMergeTemplate: return new CRMWindowInfo("tools/mailmerge/edit.aspx",820,580);
    case RelationshipRole: return new CRMWindowInfo("biz/relationshiproleedit.aspx",820,560);
    case Report: return new CRMWindowInfo("crmreports/cusdistributing.aspx",880,700);
    case ReportPropertyDialog: return new CRMWindowInfo("crmreports/cusdistributing.aspx",880,700);
    case TimeOffCalendarRule: return new CRMWindowInfo("sm/workplans/dialogs/timeoff.aspx",550,420);
    case HolidayCalendarRule: return new CRMWindowInfo("sm/workplans/dialogs/holiday.aspx",550,420);
    case RecurringWorkShift: return new CRMWindowInfo("sm/workplans/edit.aspx",550,540);
    case NotWorkingWorkShift: return new CRMWindowInfo("sm/workplans/edit.aspx",550,540);
    case FixedMonthlyFiscalCalendar: return new CRMWindowInfo("_grid/cmds/dlg_addquota.aspx",600,425);
    case MonthlyFiscalCalendar: return new CRMWindowInfo("_grid/cmds/dlg_addquota.aspx",600,425);
    case QuarterlyFiscalCalendar: return new CRMWindowInfo("_grid/cmds/dlg_addquota.aspx",600,425);
    case SemiAnnualFiscalCalendar: return new CRMWindowInfo("_grid/cmds/dlg_addquota.aspx",600,425);
    case AnnualFiscalCalendar: return new CRMWindowInfo("_grid/cmds/dlg_addquota.aspx",600,425);
    case UserQuery: return new CRMWindowInfo("advancedfind/advfind.aspx",900,600);
    case AppOfflineFilter: return new CRMWindowInfo("tools/offlinedata/offlinefilter.aspx",850,720);
    case DisplayString: return new CRMWindowInfo("tools/systemcustomization/displaystrings/edit.aspx",820,560);
    case ActivityScheduling: return new CRMWindowInfo("sm/activityscheduling/schedulingdialog.aspx",880,600);
    case Workflow: return new CRMWindowInfo("sfa/workflow/edit.aspx",1000,560);
    case AsyncOperation: return new CRMWindowInfo("tools/asyncoperation/edit.aspx",900,560);
    case AppWorkflowInstance: return new CRMWindowInfo("tools/workflowinstance/edit.aspx",1000,560);
    case ScriptErrorDialog: return new CRMWindowInfo("_common/error/dlg_scripterror.aspx",550,260);
    case ScriptErrorDetailsDialog: return new CRMWindowInfo("_common/error/dlg_scripterrordetails.aspx",500,300);
    case DuplicateRule: return new CRMWindowInfo("tools/duplicatedetection/duplicatedetectionrules/edit.aspx",1000,640);
    case ImportMap: return new CRMWindowInfo("tools/managemaps/edit.aspx",1000,680);
    case BulkDeleteOperation: return new CRMWindowInfo("tools/bulkdelete/edit.aspx",1000,640);
    default: if (IsUserDefinedEntityObjectTypeCode(Number(iObjectType))) 
    return new CRMWindowInfo("userdefined/edit.aspx",1000,560);}alert(formatString(LOCID_UNRECOGNIZE_DOTC, iObjectType));
}